package review.project;

/**
 * @author lovoedu
 * @version 1.0
 */
public abstract class Animal {
    private ColorEnum color;  // 颜色
    private String kind;  // 品种
    private Boolean hair; // 是否是长毛（true/false）
    private Boolean jueyu; // 绝育
    private GenderEnum gender;  // 性别

    public abstract void eat(String food);

    public Animal(ColorEnum color, String kind, Boolean hair, Boolean jueyu, GenderEnum gender) {
        this.color = color;
        this.kind = kind;
        this.hair = hair;
        this.jueyu = jueyu;
        this.gender = gender;
    }

    public ColorEnum getColor() {
        return color;
    }

    public void setColor(ColorEnum color) {
        this.color = color;
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }

    public Boolean getHair() {
        return hair;
    }

    public void setHair(Boolean hair) {
        this.hair = hair;
    }

    public Boolean getJueyu() {
        return jueyu;
    }

    public void setJueyu(Boolean jueyu) {
        this.jueyu = jueyu;
    }

    public GenderEnum getGender() {
        return gender;
    }

    public void setGender(GenderEnum gender) {
        this.gender = gender;
    }
}
